AddCSLuaFile( "shared.lua" )

include( 'shared.lua' )

local FoodList = {}

function ENT:Initialize( )

		local FoodList = file.FindDir("../" .. GAMEMODE.Folder .. "/entities/entities/food_*")
		
			for i = #FoodList, 1, -1 do
				if FoodList[i] == "food_base" or FoodList[i] == "food_spawn" then
					table.remove(FoodList, i)
				end
			end

		local Food = ents.Create(FoodList[math.random(#FoodList)])
		Food:SetPos(self:GetPos())
		Food:Spawn()
		self:Remove()
	
end
